package shan.rpc.example.provider;

import shan.rpc.example.common.service.UserService;
import shan.rpc.yurpc.registry.LocalRegistry;
import shan.rpc.yurpc.server.HttpServer;
import shan.rpc.yurpc.server.VertxHttpServer;

public class EasyProviderExample {

    public static void main(String[] args) {

        //注册服务
        LocalRegistry.register(UserService.class.getName(),UserServiceImpl.class);
        //启动web服务
        HttpServer httpServer=new VertxHttpServer();
        httpServer.dostart(8080);
    }
}
